package fr.adfm.dao.generics;

import java.util.List;
import java.util.Map;

public interface AbstractDAO<T, PK>{	
	public void save(T entity);
	public void delete(T entity);	
	public T find(Long entityID);
	public List<T> findAll();
	public T update(T entity);
	public T findOneResult(String namedQuery, Map<String, Object> parameters)  throws Exception;
	public List<T> findManyResult(String namedQuery, Map<String, Object> parameters)  throws Exception;
}
